package com.shen.core.web;

import com.google.common.collect.Maps;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.Map;

/**
 * @Author: shenyang
 * @CreateTime: 2022-09-30  16:46
 * @Description: TODO
 * @Version: 1.0
 */
@Component
public class ResultDataDetail {

    public static Map<Integer,String>  resultMap = Maps.newHashMap();

    /**
     * 成功
     */
    public static final int SUCCESS = 200;

    /**
     * 失败
     */
    public static final int FAILURE = 300;

    /**
     * 未登录
     */
    public static final int NOT_LOGIN = 401;

    @PostConstruct
    public void initial(){
        resultMap.put(SUCCESS,"成功");
        resultMap.put(FAILURE,"失败");
        resultMap.put(NOT_LOGIN,"未登录");
    }




}
